Optimal. Leaf size=67 \[ \frac {1}{2} A x \sqrt {a+b x^2}+\frac {a A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 \sqrt {b}}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b} \]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 67, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, integrand size = 17, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.235, Rules used = {641, 195, 217, 206} \begin {gather*} \frac {1}{2} A x \sqrt {a+b x^2}+\frac {a A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 \sqrt {b}}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 195
Rule 206
Rule 217
Rule 641
Rubi steps
\begin {align*} \int (A+B x) \sqrt {a+b x^2} \, dx &=\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+A \int \sqrt {a+b x^2} \, dx\\ &=\frac {1}{2} A x \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {1}{2} (a A) \int \frac {1}{\sqrt {a+b x^2}} \, dx\\ &=\frac {1}{2} A x \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {1}{2} (a A) \operatorname {Subst}\left (\int \frac {1}{1-b x^2} \, dx,x,\frac {x}{\sqrt {a+b x^2}}\right )\\ &=\frac {1}{2} A x \sqrt {a+b x^2}+\frac {B \left (a+b x^2\right )^{3/2}}{3 b}+\frac {a A \tanh ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a+b x^2}}\right )}{2 \sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 67, normalized size = 1.00 \begin {gather*} \frac {\sqrt {a+b x^2} (2 a B+b x (3 A+2 B x))+3 a A \sqrt {b} \log \left (\sqrt {b} \sqrt {a+b x^2}+b x\right )}{6 b} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
IntegrateAlgebraic [A] time = 0.23, size = 68, normalized size = 1.01 \begin {gather*} \frac {\sqrt {a+b x^2} \left (2 a B+3 A b x+2 b B x^2\right )}{6 b}-\frac {a A \log \left (\sqrt {a+b x^2}-\sqrt {b} x\right )}{2 \sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.74, size = 128, normalized size = 1.91 \begin {gather*} \left [\frac {3 \, A a \sqrt {b} \log \left (-2 \, b x^{2} - 2 \, \sqrt {b x^{2} + a} \sqrt {b} x - a\right ) + 2 \, {\left (2 \, B b x^{2} + 3 \, A b x + 2 \, B a\right )} \sqrt {b x^{2} + a}}{12 \, b}, -\frac {3 \, A a \sqrt {-b} \arctan \left (\frac {\sqrt {-b} x}{\sqrt {b x^{2} + a}}\right ) - {\left (2 \, B b x^{2} + 3 \, A b x + 2 \, B a\right )} \sqrt {b x^{2} + a}}{6 \, b}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.41, size = 55, normalized size = 0.82 \begin {gather*} -\frac {A a \log \left ({\left | -\sqrt {b} x + \sqrt {b x^{2} + a} \right |}\right )}{2 \, \sqrt {b}} + \frac {1}{6} \, \sqrt {b x^{2} + a} {\left ({\left (2 \, B x + 3 \, A\right )} x + \frac {2 \, B a}{b}\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.01, size = 53, normalized size = 0.79 \begin {gather*} \frac {A a \ln \left (\sqrt {b}\, x +\sqrt {b \,x^{2}+a}\right )}{2 \sqrt {b}}+\frac {\sqrt {b \,x^{2}+a}\, A x}{2}+\frac {\left (b \,x^{2}+a \right )^{\frac {3}{2}} B}{3 b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 1.32, size = 45, normalized size = 0.67 \begin {gather*} \frac {1}{2} \, \sqrt {b x^{2} + a} A x + \frac {A a \operatorname {arsinh}\left (\frac {b x}{\sqrt {a b}}\right )}{2 \, \sqrt {b}} + \frac {{\left (b x^{2} + a\right )}^{\frac {3}{2}} B}{3 \, b} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 1.16, size = 52, normalized size = 0.78 \begin {gather*} \frac {B\,{\left (b\,x^2+a\right )}^{3/2}}{3\,b}+\frac {A\,x\,\sqrt {b\,x^2+a}}{2}+\frac {A\,a\,\ln \left (\sqrt {b}\,x+\sqrt {b\,x^2+a}\right )}{2\,\sqrt {b}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [A] time = 6.51, size = 70, normalized size = 1.04 \begin {gather*} \frac {A \sqrt {a} x \sqrt {1 + \frac {b x^{2}}{a}}}{2} + \frac {A a \operatorname {asinh}{\left (\frac {\sqrt {b} x}{\sqrt {a}} \right )}}{2 \sqrt {b}} + B \left (\begin {cases} \frac {\sqrt {a} x^{2}}{2} & \text {for}\: b = 0 \\\frac {\left (a + b x^{2}\right )^{\frac {3}{2}}}{3 b} & \text {otherwise} \end {cases}\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________